﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Events.CachedInvokableCall`1
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Reflection;

#nullable disable
namespace UnityEngine.Events
{
  internal class CachedInvokableCall<T> : InvokableCall<T>
  {
    private readonly T m_Arg1;

    public CachedInvokableCall(Object target, MethodInfo theFunction, T argument)
      : base((object) target, theFunction)
    {
      this.m_Arg1 = argument;
    }

    public override void Invoke(object[] args) => base.Invoke(this.m_Arg1);

    public override void Invoke(T arg0) => base.Invoke(this.m_Arg1);
  }
}
